package com.atguigu.gmall.item;

import com.atguigu.gmall.starter.cache.annotation.EnableAppCache;
import com.atguigu.gmall.common.config.thread.annotation.EnableAppThreadPool;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringCloudApplication
//SpringBoot：只会扫描自己主程序所在的包和子包组件，，远程调用的组件在 com.atguigu.gmall.feign 包下
@EnableFeignClients(basePackages = {"com.atguigu.gmall.feign.product","com.atguigu.gmall.feign.search"})
@EnableAppThreadPool//开启线程池
//@EnableAppCache//开启缓存
public class ItemApplication {
    public static void main(String[] args) {
        SpringApplication.run(ItemApplication.class, args);
    }
}
